package com.longy.gulimall.product.dao;

import com.longy.gulimall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 商品三级分类
 * 
 * @author longyang
 * @email longyang3240@163.com
 * @date 2020-09-28 20:47:20
 */
@Mapper
public interface CategoryDao extends BaseMapper<CategoryEntity> {
	@Select("select * from pms_category where cat_Id =#{id} for update")
    CategoryEntity SelectForUpdate(Long id);
}
